usb: ehci-mx6: implement ofdata_to_platdata
authorPeng Fan <[email protected]>
Thu, 22 Dec 2016 09:06:42 +0000 (17:06 +0800)
committerMarek Vasut <[email protected]>
Tue, 17 Jan 2017 09:26:32 +0000 (10:26 +0100)
commitcccbddc38c431a0afd7fd0b3e1d48e5326610084
tree049bec6a869251df4873802faea3c8fbd08cf6a7
parent63d747477be2f6f948760f2dc9ce0f440c0af45c
usb: ehci-mx6: implement ofdata_to_platdata

Implement ofdata_to_platdata to set the type to host or device.
 - Check "dr-mode" property.
 - If there is no "dr-mode", check phy_ctrl for i.MX6
   and phy_status for i.MX7

Signed-off-by: Peng Fan <[email protected]>
Cc: Marek Vasut <[email protected]>
Cc: Simon Glass <[email protected]>
Cc: Stefano Babic <[email protected]>
drivers/usb/host/ehci-mx6.c